package com.gw.vip.server.service.dao_service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gw.vip.server.dao.HisTransMapper;
import com.gw.vip.server.po.HisTrans;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

/**
 * @author GW
 * @description
 * @since 2022-05-10
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class HisTransService extends ServiceImpl<HisTransMapper, HisTrans> {

    private final HisTransMapper mapper;

    public int countByClearDate(LocalDate clearDate) {
        return this.mapper.countByClearDate(clearDate);
    }

    public void tmpTransToHis(LocalDate clearDate) {
        this.mapper.tmpTransToHis(clearDate);
    }

    public List<HisTrans> listByOrderId(String orderId) {
        return mapper.listByOrderId(orderId);
    }
}
